package name.jiaosha.air.system.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ali8ba.Domain;

/**
 * 类别表
 * 
 * @author xu
 * 
 */
@Entity
@Table(name = "sys_category")
public class Category extends Domain {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4829602161384166483L;

	@Id()
	@Column(name = "id", unique = true, nullable = false, precision = 11)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 类别 挂机;壁机;..
	 */
	@Column(name = "name")
	private String name;

	@Column(name = "pinyin")
	private String pinyin;

	public Category() {

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

}
